﻿using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using WebUI.Reposiories;

namespace WebUI.Controllers
{
    [Export]
    [PartCreationPolicy(CreationPolicy.NonShared)]
    public class PersonController : Controller
    {
        [Import(typeof(IPersonRepository))]
        PersonRepository bookRepository;

        public PersonController()
        {
        }

        public ActionResult Index()
        {
            return View(this.bookRepository.GetAll());
        }
    }

}
